//
//  StoryControllerView.h
//  iPing
//
//  Created by Thomas on 8/11/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
typedef enum {
	kSCHostSOL = 1001,
	kSCHostLIT = 0,
} HostType;
#import "SGStoryList.h";
#import "ManagingViewController.h"
#import "TCSGePubCreator.h"
@class TCSGgetSOLstory, TCSGgetLitStory;
@interface StoryControllerView : ManagingViewController {
	IBOutlet NSTextField	*saveField;
    IBOutlet NSTextField	*idField;
	IBOutlet NSTextField	*labelField;
	IBOutlet NSTextField	*compileField;
	IBOutlet NSButton		*getButton;
    IBOutlet NSButton		*saveButton;
	IBOutlet NSButton		*moreInfoButton;
	IBOutlet NSButton		*shortTOC;
	IBOutlet NSButton		*longTOC;
	IBOutlet NSButton		*removeButton;
	IBOutlet NSButton		*compileButton;
	IBOutlet NSButton		*upButton;
	IBOutlet NSButton		*downButton;
	IBOutlet NSButton		*AddLibButton;
	IBOutlet NSPopUpButton	*hostButton;
	IBOutlet NSTableView	*tableView;
	IBOutlet NSImageView	*imageWell;
	IBOutlet NSProgressIndicator *indicator;
	
	SGStoryList				*theStoryListView;
	BOOL					running;
	int						li;
	int						storyTag;
	NSMutableArray			*instances;

	
}
#pragma mark  IBActions
- (IBAction)addToLibrary:(id)pId;
- (IBAction)changeHost:(id)pId;
- (IBAction)combineAll:(id)pId;
- (IBAction)doAddRandom:(id)pId;
- (IBAction)doGet:(id)pId;
- (IBAction)doOpenSaveFolder:(id)pId;
- (IBAction)moveDownInTable:(id)pId;
- (IBAction)moveUpInTable:(id)pId;
- (IBAction)removeStoryFromTable:(id)pId;


#pragma mark View Controllers
- (void)displayText:(NSNotification *)note;
- (void)startRunning;
- (void)stopRunning;

#pragma mark StoryList Interactions
- (BOOL)addStory:(int)row;
- (void)addStoryToList:(NSDictionary *)storyDict;


#pragma mark Download Selectors
- (void)getAuthorStories:(NSString *)authorID;
- (void)getSingleStory:(NSString *)storyID;



@end
